<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="m"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
		<title>留言祝福——高青一中60年校庆</title>
		<script src="style/jquery132.js" type="text/javascript"></script>
		<script src="style/art.dialog.js" type="text/javascript"></script>
		<link href="style/reset.css" rel="stylesheet" type="text/css"/>
		<link href="style/style.css" rel="stylesheet" type="text/css"/>
		<link href="style/ds.css" rel="stylesheet" type="text/css"/>
		<link href="style/art.dialog.css" rel="stylesheet" type="text/css" />
	</head>

<body>
<div id="container">
	<m:nav/>
<div id="main" class="wishes">
				<div id="content">					
<script type="text/javascript">
	function addwish() {
		art.dialog({
					title : '留言祝福(最多40个字)',
					content : '<iframe src="addwish.jsp" scrolling="no" frameborder="0" name="reg" style="width: 500px; height: 245px;"></iframe>',
					width : '500px',
					height : '245px',
					fixed : true,
					lock : true,
					style : 'mesNoBottom',
					move : true
				});
	}
</script>
			<%
			Random random = new Random();
			%>
			<s:iterator value="wishes" var="wishes">
			
					<div class="wish"
						style="background: url(images/wish_<%=Math.round(Math.random()*4+0)%>.gif) left top no-repeat;">
						<table border="0" cellpadding="0" cellspacing="0" width="138">
							<tbody>
								<tr>
									<td height="22" width="67">
										<div style="width: 67px; height: 22px; overflow: hidden;">
											<s:property value="#wishes.wishOwner" />
										</div>
									</td>
									<td align="right" width="71">
										<s:date name="#wishes.wishDate" format="yyyy.MM.dd" />
									</td>
								</tr>
								<tr>
									<td colspan="2" style="padding-top: 5px;">
										<p>
											<s:property value="#wishes.wishContent" />【<s:property value="#wishes.wishOwnerstate" />】
										</p>
									</td>
								</tr>

							</tbody>
						</table>
					</div>
			</s:iterator>

					<div style="clear: both"></div>
					<table border="0" cellpadding="0" cellspacing="0" width="685">
						<tbody>
							<tr>
								<td>
									<div id="page">
										<div class="navigation">
											<div class="page">
												<table class="classicLookPagingTag PagingTag" border="0"
													cellpadding="0" cellspacing="0">
													<tbody>
														<tr class="classicLookPagingTag PagingTag">
															<td class="classicLookPaging Paging">
																<table class="classicLookPaging Paging" border="0" cellpadding="0" cellspacing="0">
																				<tbody>
										<tr class="classicLookPaging Paging">
											<td>
											<s:if test="prePage!=0">
												<a	href="wishesAction.action?page=${startPage}&pageSize=12">
												<img alt="首页" src="images/firston.gif" border="0">
												</a>
											</s:if>
											<s:else>
												<img alt="首页" src="images/firstoff.gif" border="0">
											</s:else>
											</td>
											<td>
												<s:if test="prePage!=0">
													<a	href="wishesAction.action?newsItem=1&page=${prePage}&pageSize=12">
													<img alt="上一页" src="images/previouson.gif" border="0">
													</a>
												</s:if>
												<s:else>
													<img alt="上一页" src="images/previousoff.gif" border="0">
												</s:else>
											</td>
											<td>
												<s:if test="nextPage!=0">
													<a	href="wishesAction.action?newsItem=1&page=${nextPage}&pageSize=12">
													<img alt="下一页" src="images/forwardon.gif" border="0">
													</a>
												</s:if>
												<s:else>
													<img alt="下一页" src="images/forwardoff.gif" border="0">
												</s:else>
											</td>
											<td>
												<s:if test="endPage!=0">
													<a href="wishesAction.action?newsItem=1&page=${endPage}&pageSize=12">
													<img alt="末页" src="images/laston.gif" border="0">
													</a>
												</s:if>
												<s:else>
													<img alt="末页" src="images/lastoff.gif" border="0">
												</s:else>
											</td>
										</tr>
									</tbody>
																</table>
															</td>
														</tr>
													</tbody>
												</table>
											</div>
										</div>
									</div>
								</td>
								<td>

									<div class="addwish">
										<a href="#" onclick="addwish();" id="add"><img src="images/wish_add.gif" alt="" border="0"/></a>
									</div>

								</td>
							</tr>
						</tbody>
					</table>

				</div>
			</div>

			<div id="footer">
			<m:copyright/>
			</div>

		</div>


	
	</body>
</html>